package com.tangkun.environment.activity;

import android.content.Context;
import android.os.Bundle;
import android.view.View;

import com.tangkun.environment.R;
import com.tangkun.environment.utils.JumpHelper;

import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * 登录注册页
 */

public class IndexActivity extends BaseActivity {

    private Context mContext;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        mContext = this;
        setContentView(R.layout.activity_index);
        ButterKnife.bind(this);
    }

    @OnClick({R.id.btn_index_denglu, R.id.btn_index_zhuce, R.id.tv_index_suibianguangguang})
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.btn_index_denglu://登录
                JumpHelper.jump(IndexActivity.this, LoginActivity.class, false);
                break;
            case R.id.btn_index_zhuce://注册
                JumpHelper.jump(IndexActivity.this, RegistActivity.class, false);
                break;
            case R.id.tv_index_suibianguangguang://随便逛逛
                JumpHelper.jump(IndexActivity.this, MainActivity.class, true);
                break;
        }
    }
}
